package vn.edu.hut.soict.automaton;

public class PsedoState<T> extends State<T> {

	public PsedoState(State<T> state) {
		super();
		this.automaton = state.automaton;
		this.id = -1;
		for (Transition<T> transition : state.getNextTransitions()) {
			if (transition != null) {
				for (Transition<T> nextTransition : transition.getTarget().getNextTransitions()) {
					Transition<T> newTransition = new Transition<T>(this, nextTransition.getTarget(), nextTransition.getSymbol());
					getNextTransitions().add(newTransition);
				}
			}
		}
	}
}
